/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

/**
 *
 * @author kimloan
 */
public class PhongPOJO {

    //<editor-fold defaultstate="collapsed" desc="1. Thuộc tính">
    private int maPhong;
    private int maRap;
    private String tenPhong;
    private int soLuongGhe;
    private int trangThai;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Phương thức getter/setter">
    public int getMaRap() {
        return maRap;
    }

    public void setMaRap(int maRap) {
        this.maRap = maRap;
    }

    public int getSoLuongGhe() {
        return soLuongGhe;
    }

    public void setSoLuongGhe(int soLuongGhe) {
        this.soLuongGhe = soLuongGhe;
    }

    public String getTenPhong() {
        return tenPhong;
    }

    public void setTenPhong(String tenPhong) {
        this.tenPhong = tenPhong;
    }

    public int getMaPhong() {
        return maPhong;
    }

    public void setMaPhong(int maPhong) {
        this.maPhong = maPhong;
    }

    public int getTrangThai() {
        return trangThai;
    }

    public void setTrangThai(int trangThai) {
        this.trangThai = trangThai;
    }

    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="3. Phương thức khởi tạo mặc định">
    public PhongPOJO() {
        this.maPhong = -1;
        this.maRap = 0;
        this.tenPhong = "";
        this.soLuongGhe = 0;
        this.trangThai = 0;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="4. Phương thức khởi tạo đầy đủ tham số">
    public PhongPOJO(int id, int marap, String tenphong, int soluongghe, int trangthai) {
        this.maPhong = id;
        this.maRap = marap;
        this.tenPhong = tenphong;
        this.soLuongGhe = soluongghe;
        this.trangThai = trangthai;
    }
//</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="5. Phương thức khởi tạo sao chép">
    public PhongPOJO(PhongPOJO phg) {
        this.maPhong = phg.maPhong;
        this.maRap = phg.maRap;
        this.tenPhong = phg.tenPhong;
        this.soLuongGhe = phg.soLuongGhe;
        this.trangThai = phg.trangThai;
    }
//</editor-fold>
}
